package com.woniu.pojo;

import java.io.Serializable;

/**
 * mark
 * @author 
 */
public class Mark implements Serializable {
    /**
     * 成绩id
     */
    private Integer mid;

    /**
     * 学生id
     */
    private Integer sid;

    /**
     * 阶段编号
     */
    private Integer sno;

    /**
     * 成绩
     */
    private Double score1;

    /**
     * 成绩
     */
    private Double score2;

    /**
     * 成绩
     */
    private Double score3;

    /**
     * 成绩
     */
    private Double score4;

    /**
     * 成绩
     */
    private Double score5;

    /**
     * 成绩
     */
    private Double score6;

    /**
     * 积分
     */
    private Double attendance;

    /**
     * 积分
     */
    private Double homeworks;

    /**
     * 学生
     */
    private Student student;

    /**
     * 阶段
     */
    private Stage stage;


    private double firstStage;
    private double secondStage;

    private double thirdStage;

    private double processStage;

    private double allScore;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Stage getStage() {
        return stage;
    }

    public void setStage(Stage stage) {
        this.stage = stage;
    }

    public double getFirstStage() {
        return firstStage;
    }

    public void setFirstStage(double firstStage) {
        this.firstStage = firstStage;
    }

    public double getSecondStage() {
        return secondStage;
    }

    public void setSecondStage(double secondStage) {
        this.secondStage = secondStage;
    }

    public double getThirdStage() {
        return thirdStage;
    }

    public void setThirdStage(double thirdStage) {
        this.thirdStage = thirdStage;
    }

    public double getProcessStage() {
        return processStage;
    }

    public void setProcessStage(double processStage) {
        this.processStage = processStage;
    }

    public double getAllScore() {
        return allScore;
    }

    public void setAllScore(double allScore) {
        this.allScore = allScore;
    }

    private static final long serialVersionUID = 1L;

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public Double getScore1() {
        return score1;
    }

    public void setScore1(Double score1) {
        this.score1 = score1;
    }

    public Double getScore2() {
        return score2;
    }

    public void setScore2(Double score2) {
        this.score2 = score2;
    }

    public Double getScore3() {
        return score3;
    }

    public void setScore3(Double score3) {
        this.score3 = score3;
    }

    public Double getScore4() {
        return score4;
    }

    public void setScore4(Double score4) {
        this.score4 = score4;
    }

    public Double getScore5() {
        return score5;
    }

    public void setScore5(Double score5) {
        this.score5 = score5;
    }

    public Double getScore6() {
        return score6;
    }

    public void setScore6(Double score6) {
        this.score6 = score6;
    }

    public Double getAttendance() {
        return attendance;
    }

    public void setAttendance(Double attendance) {
        this.attendance = attendance;
    }

    public Double getHomeworks() {
        return homeworks;
    }

    public void setHomeworks(Double homeworks) {
        this.homeworks = homeworks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Mark other = (Mark) that;
        return (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()))
            && (this.getScore1() == null ? other.getScore1() == null : this.getScore1().equals(other.getScore1()))
            && (this.getScore2() == null ? other.getScore2() == null : this.getScore2().equals(other.getScore2()))
            && (this.getScore3() == null ? other.getScore3() == null : this.getScore3().equals(other.getScore3()))
            && (this.getScore4() == null ? other.getScore4() == null : this.getScore4().equals(other.getScore4()))
            && (this.getScore5() == null ? other.getScore5() == null : this.getScore5().equals(other.getScore5()))
            && (this.getScore6() == null ? other.getScore6() == null : this.getScore6().equals(other.getScore6()))
            && (this.getAttendance() == null ? other.getAttendance() == null : this.getAttendance().equals(other.getAttendance()))
            && (this.getHomeworks() == null ? other.getHomeworks() == null : this.getHomeworks().equals(other.getHomeworks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        result = prime * result + ((getScore1() == null) ? 0 : getScore1().hashCode());
        result = prime * result + ((getScore2() == null) ? 0 : getScore2().hashCode());
        result = prime * result + ((getScore3() == null) ? 0 : getScore3().hashCode());
        result = prime * result + ((getScore4() == null) ? 0 : getScore4().hashCode());
        result = prime * result + ((getScore5() == null) ? 0 : getScore5().hashCode());
        result = prime * result + ((getScore6() == null) ? 0 : getScore6().hashCode());
        result = prime * result + ((getAttendance() == null) ? 0 : getAttendance().hashCode());
        result = prime * result + ((getHomeworks() == null) ? 0 : getHomeworks().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mid=").append(mid);
        sb.append(", sid=").append(sid);
        sb.append(", sno=").append(sno);
        sb.append(", score1=").append(score1);
        sb.append(", score2=").append(score2);
        sb.append(", score3=").append(score3);
        sb.append(", score4=").append(score4);
        sb.append(", score5=").append(score5);
        sb.append(", score6=").append(score6);
        sb.append(", attendance=").append(attendance);
        sb.append(", homeworks=").append(homeworks);
        sb.append(", firstStage=").append(firstStage);
         sb.append(", secondStage=").append(secondStage);
         sb.append(", thirdStage=").append(thirdStage);
         sb.append(", processStage=").append(processStage);
         sb.append(", allScore=").append(allScore);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}